package four;
class Table
{
    String name;
    double zhongliang;
    int kuan;
    int gao;

    public Table(String name, double zhongliang, int kuan, int gao) {
        this.name = name;
        this.zhongliang = zhongliang;
        this.kuan = kuan;
        this.gao = gao;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getZhongliang() {
        return zhongliang;
    }

    public void setZhongliang(double zhongliang) {
        this.zhongliang = zhongliang;
    }

    public int getKuan() {
        return kuan;
    }

    public void setKuan(int kuan) {
        this.kuan = kuan;
    }

    public int getGao() {
        return gao;
    }

    public void setGao(int gao) {
        this.gao = gao;
    }
}
public class three {
    public static void main(String[] args) {
        Table T=new Table("桌子",12,3,4);
        int c=Area(T.kuan,T.gao);
        double n=changeWeight(T.zhongliang);
        display(c,n);
    }
    public static int Area(int kuan, int gao)
    {
        return kuan*gao;
    }
    public static  void display(int c,double n)
    {
        System.out.println("桌面面积："+c);
        System.out.println("新重量:"+n);
    }
    public static  double changeWeight(double zhongliang)
    {
        double newzhongliang=1112.0;
        return newzhongliang;
    }

}
